package com.csap.framework.apidoc.admin.model;

import com.alibaba.fastjson.JSONObject;
import com.csap.framework.annotation.apidoc.Description;
import com.csap.framework.util.CollectionsUtil;
import lombok.Data;
import lombok.AllArgsConstructor;
import com.csap.framework.annotation.apidoc.ApiModelProperty;
import com.csap.framework.apidoc.admin.entity.ApiDocPathEntity;
import lombok.NoArgsConstructor;
import lombok.Builder;
import com.csap.mybatisplus.extension.activerecord.CloneModel;
import lombok.experimental.Accessors;
import com.csap.framework.annotation.apidoc.ApiModel;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 文档路径信息
 * </p>
 *
 * @author
 * @dateTime
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(description = "文档路径信息", value = "apiDocPath对象")
@Description(value = "文档路径信息Model")
public class ApiDocPathModel extends CloneModel<ApiDocPathModel, ApiDocPathEntity> {
    @ApiModelProperty(description = "主键", value = "主键")
    private Long id;
    @ApiModelProperty(description = "文档数据路径", value = "文档数据路径")
    private String url;
    @ApiModelProperty(description = "唯一标识", value = "唯一标识")
    private String pathKey;
    @ApiModelProperty(description = "文档ID", value = "文档ID")
    private Long apidocId;
    @ApiModelProperty(description = "mock地址", value = "mock地址")
    private String mockUrl;
    @ApiModelProperty(description = "API路请求径", value = "API路请求径")
    private String apiUrl;
    @ApiModelProperty(description = "接口文档名称", value = "接口文档名称")
    private String name;
    @ApiModelProperty(description = "描述", value = "描述")
    private String descr;
    @ApiModelProperty(description = "首页富文本", value = "首页富文本")
    private String md;
    @ApiModelProperty(description = "文档的API数据", value = "文档的API数据")
    private JSONObject apiDoc;

}
